



<div class="content">
    <!--- Bread Crumbs Menu -->
    <div class="breadLine">
        <ul class="breadcrumb">
            <li><a href="/">Admin</a> <span class="divider">></span></li>                
            <li class="active">Create Brochure</li>
        </ul>
        <?php
            //echo $this->setLayout("breadcrumbs_right_menu");
        ?>
    </div>

   <div class="workplace">

        <div class="row-fluid">
            <div class="span12">
                <div class="head clearfix">
                    <div class="isw-calendar"></div>
                        <h1>Brochure</h1>
                    </div>
                    <div class="row-fluid">
                        <div class="widget">
                            <div class="head dark">
                                <div class="icon title_icon"><i class="fa fa-book"></i></div>
                                <h2>Set - Up Brochure</h2>
                                <ul class="buttons">                                                        
                                    <li><a href="#" class="cblock"><span class="icos-menu"></span></a></li>
                                </ul>
                            </div>   
                            <div class="block-fluid">
                                <div class="hide" style="background-color: #000;position: absolute;width: 98%;height: 92%;z-index: 1111111111;opacity: 0.1;text-align: center;">
                                    <img src="http://ebrochure.gs3.com.ph/images/loaders/1d_2.gif" style="margin-top: 32%;">
                                </div>
                                <div class="block brochure_none">
                                    Please enter number of pages you want on the brochure settings!
                                </div>
                                <div class="brochure_workspace" style="display: none;">
                                    <div class="toolbar top">
                                        
                                        <div class="block">
                                            <!--<div class="span1" style="margin-top: 5px;">Go to Page:</div>-->
                                            <!--<div class="span1">-->
                                            <!--    <div class="input-append">-->
                                            <!--        <input type="text" class="page_update_val">-->
                                            <!--        <button class="btn create_pages" data-type="update_page" type="button">Go</button>-->
                                            <!--    </div>-->
                                            <!--</div>-->
                                            <div class="span12">
                                                <div id="brochure_pagination"></div>
                                            </div>
                                        </div>
                                    </div>
                                        <!--<div class="pagination pagination-centered pagination-mini">-->
                                            <!--<ul>
                                                <li class="disabled"><a href="#">«</a></li>
                                                <li class="active"><a href="#">1</a></li>
                                                <li><a href="#">2</a></li>
                                                <li><a href="#">3</a></li>
                                                <li><a href="#">4</a></li>
                                                <li><a href="#">5</a></li>
                                                <li class="disabled"><span>...</span></li>                    
                                                <li><a href="#">56</a></li>
                                                <li><a href="#">57</a></li>
                                                <li><a href="#">58</a></li>
                                                <li><a href="#">59</a></li>                    
                                                <li><a href="#">»</a></li>
                                            </ul>-->
                                        <!--</div>                             -->
                                    <div class="brochure_builder"></div>    
                                                      
                                </div>
                            </div>                                         
                        </div>
                    </div>   
                </div>
            </div>    
        </div>

   </div>

    <!-- jQuery dialog form -->
    <div class="dialog-fluid" id="cBrochure_form" style="display: none;" title="Save Brochure">
        <div class="row-fluid">
            <div class="block-fluid">
                <div class="row-form">
                    <div class="span12">
                        <span class="top title">Brochure Title
                        <input type="text" name="bTitle" id="bTitle" class="fRequired" value=""/>                        
                    </div>
                </div>              
                <div class="row-form">
                    <div class="span12">
                        <span class="top title">Brochure Description:</span>
                        <textarea id="bDescription" class="fRequired"></textarea>
                    </div>
                </div>                           
            </div>
        </div>
    </div>   

</div>

 <!--<div id="brochure_builder_1" class="brochure appendControl">-->
                                    <?php
                                    //$db = new Database();
                                    //$sql = "SELECT * FROM " . $db->tbl_name(TB_BROCHURE_PAGINATION) .
                                    //        " bp
                                    //        LEFT JOIN " . $db->tbl_name(TB_USERS) . " u ON bp.user_id=u.id " .
                                    //        "LEFT JOIN " . $db->tbl_name(TB_ACCOUNTS) . " a ON u.id=a.user_id WHERE bp.id=26";
                                    //        
                                    //        $query = $db->query($sql,"row");
                                    //        $a =  $query['brochure_json'];
                                    //        
                                    //        $a = stripslashes($a);
                                    //        $b = json_decode($a,true);
                                    //        print_r($b['brochure_json']);
                                    //        //print_r(json_decode($a,true));
                                    //        //foreach($query as $data){
                                    //            //$a = json_decode($query['brochure_json'],true);
                                    //            //print_r($a['content']);
                                    //            
                                    //        //}
                                    ?>
                                    <!--<div class="form-workspace-json "><?php ///echo json_decode($query['brochure_json'],true); ?></div>-->
                                   
                                    <!--</div>   -->